| Fully Qualified Name: | Zend\Db\Adapter\Driver\Pdo\Connection |
| Extends: | AbstractConnection |
| Name | Description | Defined By |
|---|---|---|
| __construct() | Constructor | Connection |
| beginTransaction() | {@inheritDoc} | Connection |
| commit() | {@inheritDoc} | Connection |
| connect() | {@inheritDoc} | Connection |
| disconnect() | {@inheritDoc} | AbstractConnection |
| execute() | {@inheritDoc} | Connection |
| getConnectionParameters() | Get connection parameters | AbstractConnection |
| getCurrentSchema() | {@inheritDoc} | Connection |
| getDriverName() | Get driver name | AbstractConnection |
| getDsn() | Get the dsn string for this connection | Connection |
| getLastGeneratedValue() | {@inheritDoc} | Connection |
| getProfiler() | AbstractConnection | |
| getResource() | {@inheritDoc} | AbstractConnection |
| inTransaction() | Checks whether the connection is in transaction state. | AbstractConnection |
| isConnected() | {@inheritDoc} | Connection |
| prepare() | Prepare | Connection |
| rollback() | {@inheritDoc} | Connection |
| setConnectionParameters() | {@inheritDoc} | Connection |
| setDriver() | Set driver | Connection |
| setProfiler() | {@inheritDoc} | AbstractConnection |
| setResource() | Set resource | Connection |
Constructor
| Parameter Name | Type | Description |
|---|---|---|
| $connectionParameters | array|\PDO|null |
Returns:
{@inheritDoc}
Returns:
{@inheritDoc}
Returns:
{@inheritDoc}
Returns:
{@inheritDoc}
Returns:
{@inheritDoc}
| Parameter Name | Type | Description |
|---|---|---|
| $sql |
Returns:
Get connection parameters
Returns: array
{@inheritDoc}
Returns:
Get driver name
Returns: null|string
Get the dsn string for this connection
Returns: string
{@inheritDoc}
| Parameter Name | Type | Description |
|---|---|---|
| $name | string |
Returns: string|null|bool
Returns: null|\ProfilerInterface
{@inheritDoc}
Returns: resource
Checks whether the connection is in transaction state.
Returns: bool
{@inheritDoc}
Returns:
Prepare
| Parameter Name | Type | Description |
|---|---|---|
| $sql | string |
Returns: \Statement
{@inheritDoc}
Returns:
{@inheritDoc}
| Parameter Name | Type | Description |
|---|---|---|
| $connectionParameters |
Returns:
Set driver
| Parameter Name | Type | Description |
|---|---|---|
| $driver | \Pdo |
Returns: self Provides a fluent interface
{@inheritDoc}
| Parameter Name | Type | Description |
|---|---|---|
| $profiler |
Returns: self Provides a fluent interface
Set resource
| Parameter Name | Type | Description |
|---|---|---|
| $resource | \PDO |
Returns: self Provides a fluent interface